//
//  MyLoadTableViewCell.m
//  ZhuoxinAgriculture
//
//  Created by maxine on 2016/11/9.
//  Copyright © 2016年 KKING. All rights reserved.
//

#import "MyLoadTableViewCell.h"


@interface MyLoadTableViewCell ()

@property (weak, nonatomic) IBOutlet UILabel *orderNolbl;
@property (weak, nonatomic) IBOutlet UILabel *timelbl;
@property (weak, nonatomic) IBOutlet UILabel *produceName;
@property (weak, nonatomic) IBOutlet UILabel *jkyongtulbl;
@property (weak, nonatomic) IBOutlet UIButton *statu;
@property (weak, nonatomic) IBOutlet UIImageView *iconImg;
@property (weak, nonatomic) IBOutlet UILabel *perName;



@end

@implementation MyLoadTableViewCell

- (void)awakeFromNib{
    [super awakeFromNib];
    self.iconImg.layer.cornerRadius = 20;
    self.iconImg.layer.masksToBounds = YES;
}


- (void)setModel:(MyLoanModel *)model{
    _model = model;
    
    self.orderNolbl.text = model.orderNo;
    self.timelbl.text = model.orderTime;
    self.produceName.text = model.prodName;
    self.jkyongtulbl.text = model.loanUseVal;
    self.perName.text = model.custName;
    
    [self.statu setImage:[UIImage imageNamed:model.loanStatusVal] forState:UIControlStateNormal];
}


@end
